/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.vsu.cs.kis.elections.dto;

import java.io.Serializable;
import java.util.Random;


/**
 * 
 * @author Kirill
 */
@SuppressWarnings("serial")
public class CandidateDto implements Serializable {
	
	public CandidateDto(Integer id, String fio,Integer votes){
		this.fio = fio;
		this.id = id;
		this.votes = votes;
	}
	
	public CandidateDto(Integer id, String fio){
		this(id,fio,0);
	}	

	private String fio;

	private Integer id;
	
	private Integer votes;

	public String getFio() {
		return fio;
	}

	public void setFio(String fio) {
		this.fio = fio;
	}

	public Integer getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public Integer getVotes() {
		return votes;
	}

	public void setVotes(Integer votes) {
		this.votes = votes;
	}
	
	public void random(){
		Random rand = new Random();
		votes=rand.nextInt(100);
	}
}